/***********************************************************************
	Copyright (C) 2011 Bertrand GUILLAUMOND
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

************************************************************************/

import java.util.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.io.*;

public class Message{

	private String author;
	private String subject;
	private String content;

	JPanel messagePanel;
	JLabel authorLabel;
	JLabel subjectLabel;
	JLabel contentLabel;
	

	public Message(String a, String s, String c)
	{
		author = a;
		subject = s; 
		content = c;
		messagePanel = new JPanel();
		authorLabel = new JLabel(author);
		subjectLabel = new JLabel(subject);
		contentLabel = new JLabel(content);

		messagePanel.add(authorLabel);
		messagePanel.add(subjectLabel);
		messagePanel.add(contentLabel);
	}

	public String getAuthor()
	{
		return author;
	}

	public String getSubject()
	{
		return subject;
	}

	public String getContent()
	{
		return content;
	}

	public JPanel getPanel()
	{
		return messagePanel;
	}

	
	
}

